{
  "info": {
    "_postman_id": "d26dd8c2-e90b-4ee5-b72b-d1dcceb1a152",
    "name": "jupiter-${moduleName}",
    "description": "Jupiter后台管理-${moduleName}",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "管理员 登录",
      "item": [
        {
          "name": "登录（后）获取管理员信息",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url_host}}/api/auth/info",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "auth",
                "info"
              ]
            }
          },
          "response": []
        },
        {
          "name": "登录 获取图片验证码",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url_host}}/api/auth/captcha?key=1234567890",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "auth",
                "captcha"
              ],
              "query": [
                {
                  "key": "key",
                  "value": "1234567890"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "登录（用户名+密码+验证码）",
          "event": [
            {
              "listen": "test",
              "script": {
                "id": "49c25eed-8de2-40cf-b6c3-e41cf1d6afab",
                "exec": [
                  "var data = JSON.parse(responseBody);",
                  "if (data.access_token) {",
                  "  pm.environment.set(\"bearer_token\", data.access_token);",
                  "}"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "auth": {
              "type": "basic",
              "basic": [
                {
                  "key": "password",
                  "value": "{{base_token_password}}",
                  "type": "string"
                },
                {
                  "key": "username",
                  "value": "{{base_token_name}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "username",
                  "value": "heisai",
                  "type": "text"
                },
                {
                  "key": "password",
                  "value": "e10adc3949ba59abbe56e057f20f883e",
                  "type": "text"
                },
                {
                  "key": "code",
                  "value": "5844",
                  "type": "text"
                },
                {
                  "key": "key",
                  "value": "1234567890",
                  "type": "text"
                },
                {
                  "key": "grant_type",
                  "value": "password",
                  "type": "text"
                }
              ]
            },
            "url": {
              "raw": "{{url_host}}/api/oauth/token",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "oauth",
                "token"
              ]
            }
          },
          "response": []
        },
        {
          "name": "管理员登录信息",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url_host}}/api/auth/user",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "auth",
                "user"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
      ],
      "protocolProfileBehavior": {}
    },
    <#if tables??>
    <#list tables as table>,
    {
      "name": "${table.tableComment}",
      "item": [
        {
          "name": "获取${table.tableComment}列表",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url_host}}/api/${moduleName}/${className?uncap_first}/page",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "admin",
                "user",
                "page"
              ]
            }
          },
          "response": []
        },
        {
          "name": "导出${table.tableComment}列表",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url_host}}/api/${moduleName}/${className?uncap_first}/export",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "admin",
                "user",
                "export"
              ]
            }
          },
          "response": []
        },
        {
          "name": "查看某个${table.tableComment}",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url_host}}/api/${moduleName}/${className?uncap_first}/1",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "admin",
                "user",
                "1"
              ]
            }
          },
          "response": []
        },
        {
          "name": "添加一个${table.tableComment}",
          "event": [
            {
              "listen": "test",
              "script": {
                "id": "79f74cac-77f8-4e1f-ae69-15506db73132",
                "exec": [
                  "grbv c ub c l,ikj ,,l,k "
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "disabled": true
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "username",
                  "value": "deng2",
                  "type": "text"
                },
                {
                  "key": "email",
                  "value": "deng2@qq.com",
                  "type": "text"
                },
                {
                  "key": "phone",
                  "value": "111111",
                  "type": "text"
                },
                {
                  "key": "gender",
                  "value": "1",
                  "type": "text"
                }
              ]
            },
            "url": {
              "raw": "{{url_host}}/api/${moduleName}/${className?uncap_first}",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "admin",
                "user"
              ]
            }
          },
          "response": []
        },
        {
          "name": "删除一个${table.tableComment}",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "DELETE",
            "header": [],
            "body": {
              "mode": "formdata",
              "formdata": []
            },
            "url": {
              "raw": "{{url_host}}/api/${moduleName}/${className?uncap_first}/1",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "admin",
                "user",
                "0"
              ]
            }
          },
          "response": []
        },
        {
          "name": "修改一个${table.tableComment}",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearer_token}}",
                  "type": "string"
                }
              ]
            },
            "method": "PUT",
            "header": [],
            "body": {
              "mode": "formdata",
              "formdata":
              <#if table.columns??>
              <#list table.columns as column>
              {
                "key": "${column.name}",
                "value": "**${column.name}",
                "description": "${column.remark} ",
                "type": "text"
              },
              </#list>
              </#if>,
              ]
            },
            "url": {
              "raw": "{{url_host}}/api/${moduleName}/${className?uncap_first}/1",
              "host": [
                "{{url_host}}"
              ],
              "path": [
                "api",
                "admin",
                "user",
                "3"
              ]
            }
          },
          "response": []
        }
      ],
      "protocolProfileBehavior": {}
    },
    </#list>
    </#if>
  ],
  "event": [
  ],
  "protocolProfileBehavior": {}
}
